package com.seguriapp.entities;

/**
 * Represents a Paperwork Attribute Code enum.
 * 
 * @author Tania Gonzales(taniadgv@gmail.com)
 */
public enum PaperworkAttributeCode {

  FileNeeded, Objective, Observation, Place;

  public static PaperworkAttributeCode getEnumByString(final String text) {
    if (FileNeeded.name().equals(text)) {
      return FileNeeded;
    } else if (Objective.name().equals(text)) {
      return Objective;
    } else if (Observation.name().equals(text)) {
      return Observation;
    } else if (Place.name().equals(text)) {
      return Place;
    }
    return null;
  }
}
